<template>
 <div style="height: 100vh;overflow-y: auto">

    <a-upload action="http://127.0.0.1:8482/api/v1/upload"></a-upload>
    <button @click="test">12</button>
    <a-upload action="http://127.0.0.1:8482/api/v1/bg/volunteer/import"></a-upload>
    <data-editor @dataChanged="test" :data="{
      a:1,
      b:'123',
      c:[1,2,3],
      d:[
          {
            a:1,
            g:2,
          },
          {
            g:[1,2,3],
            b:'123'
          }
      ],
      k:{
        b:1,
        r:'9090'
      },
      l:{

      }
    }"></data-editor>
 </div>
</template>

<script>
import axios from 'axios';
import ws from 'ws'
import dataEditor from '../components/dataEditor.vue'

export default{
  data(){
    return{
      
    }
  },
  components:{
    dataEditor
  },
  mounted(){

  },
  methods:{
    test(data){

      console.log(data.data)

    }
  },
  props:{

  },
}
</script>

<style scoped>

</style>